package com.itheima.ioTest_2;

import java.io.FileWriter;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public class testUnicod1 {
    public static void main(String[] args) throws IOException {
        FileWriter fw=new FileWriter("IO\\a.txt");
      /* fw.write(98);
        fw.write(99);
        fw.write(100);
       char[] c={99,98,100,101};
        fw.write(c);
        fw.write(c,0,2);
        fw.write(c,0,c.length);*/
      String s="黑马程序员lovejava";

      // fw.write(s);
        fw.write(s,0,6);
        fw.write(s,0,s.length());
        fw.close();
    }
}
